﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WZ.WebSpider.JSONSpider
{
    /// <summary>
    /// 获取公司分类得对应关系
    /// </summary>
    public class Commpany_ClassSpider
    {
        public static dynamic GetData(string sinaType)
        {
            string url = string.Format("http://vip.stock.finance.sina.com.cn/quotes_service/api/json_v2.php/Market_Center.getHQNodeData?page=1&num=400&sort=symbol&asc=1&node={0}&symbol=&_s_r_a=init", sinaType);
            WZ.Utils.WebHttp.HttpClient client = new Utils.WebHttp.HttpClient(Encoding.Default);
            string postResult = client.GetString(url);
            dynamic result = Common.JsonHelper.DeserializeObject(postResult);
            return result;
        }
    }
}
